package com.stress.testing.plugin.nosql.redis.util;

import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;

public final class JedisMethodsHolder {
    public JedisMethodsHolder() {
    }
    
    public static Set<String> methodSet = new HashSet<>();

    static {
        // 通过MethodNameArrayGenerateUtil生成
        String[] methodArr = new String[]{"zcount", "sunionstore", "zunionstore", "del", "hscan", "zinterstore", "type", "sinterstore", "setex", "zlexcount", "brpoplpush", "bitcount", "llen", "zscan", "lpushx", "bitpos", "setnx", "hvals", "evalsha", "substr", "geodist", "zrangeByLex", "geoadd", "expire", "bitop", "zrangeByScore", "smove", "lset", "decrBy", "pttl", "zrank", "blpop", "zremrangeByLex", "rpoplpush", "get", "lpop", "persist", "georadius", "set", "srandmember", "incr", "setbit", "hexists", "expireAt", "pexpire", "zcard", "bitfield", "zrevrangeByLex", "sinter", "srem", "getrange", "rename", "watch", "zrevrank", "exists", "setrange", "zremrangeByRank", "sadd", "sdiff", "zrevrange", "getbit", "scard", "sdiffstore", "clusterKeySlot", "zrevrangeByScore", "zincrby", "rpushx", "psetex", "zrevrangeWithScores", "strlen", "hdel", "zremrangeByScore", "geohash", "brpop", "lrem", "hlen", "decr", "lpush", "zrange", "lindex", "incrBy", "getSet", "ltrim", "georadiusReadonly", "touch", "incrByFloat", "rpop", "sort", "zrevrangeByScoreWithScores", "pfadd", "eval", "linsert", "pfcount", "hkeys", "hsetnx", "migrate", "hincrBy", "hgetAll", "georadiusByMemberReadonly", "restoreReplace", "hset", "spop", "zrangeWithScores", "hincrByFloat", "hmset", "renamenx", "zrem", "dump", "msetnx", "hmget", "sunion", "hget", "zadd", "move", "restore", "geopos", "mset", "zrangeByScoreWithScores", "zscore", "pexpireAt", "georadiusByMember", "ttl", "lrange", "hstrlen", "smembers", "unlink", "pfmerge", "rpush", "mget", "sscan", "append", "sismember"};
        Set<String> set = new HashSet<>(methodArr.length);
        set.addAll(Arrays.asList(methodArr));
        methodSet = Collections.unmodifiableSet(set);
    }
}
